import { API_LIST } from '../../../../Common/Api/Api'
import { commonTableList, BuiltInData } from '../../../../Common/Router/MenuNav/Common/common'
import {
    FrontOrganizations,
    PersonTypeTree,
    InfoTypeManageTree,
    LabHandleType,
    ProjectList,
    EnumComments,
    SecurityProblemTypeTree,
    SuperviseTypes,
    EventType,
} from '../../../../Common/Router/MenuNav/Common/Conversion'
import dayjs from 'dayjs'
import { Button } from 'antd'
import { GetAttData } from './index'

const { hostname } = window.location

// 人员统计
export const SecondaryPersonnelTemplate = async () => {
    const data = {
        pageSize: 10,
        params: { pageIndex: 1, OOrganizationName: 'asc@1' },
        get: API_LIST()[`getGetPersonDetail`],
        columns: [
            {
                title: '组织机构',
                dataIndex: 'organizationName',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '人员类别',
                dataIndex: 'personTypeName',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '姓名',
                dataIndex: 'tableName',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '性别',
                dataIndex: 'gender',
                render: (_, e) => <div> {e.gender === 0 ? '女' : '男'} </div>,
                ellipsis: true,
                align: 'center',
                search: false,
            },
            {
                title: '进场时间',
                dataIndex: 'createTime',
                valueType: 'dateTime',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            commonTableList.StartDate,
            commonTableList.EndDate,
        ],
    }
    return data
}

// 岗位统计
export const SecondaryPersonnelTemplateNew = async () => {
    const data = {
        pageSize: 10,
        params: { pageIndex: 1, StartDate: dayjs().format('YYYY-MM-DD'), EndDate: dayjs().format('YYYY-MM-DD') },
        get: API_LIST()[`getPersonAttendanceStat`],
        columns: [
            {
                title: '组织机构',
                dataIndex: ['person', 'organization', 'tableName'],
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '组织机构',
                dataIndex: 'organizationUuid',
                valueEnum: await FrontOrganizations(),
                ellipsis: true,
                align: 'center',
                hideInTable: true,
            },
            {
                title: '人员类别',
                dataIndex: ['person', 'personType', 'fullName'],
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '姓名',
                dataIndex: ['person', 'tableName'],
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '性别',
                dataIndex: 'gender',
                render: (_, e) => <div> {e.person.gender === 0 ? '女' : '男'} </div>,
                ellipsis: true,
                align: 'center',
                search: false,
            },
            {
                title: '最早时间',
                dataIndex: 'minTime',
                valueType: 'dateTime',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '最晚时间',
                dataIndex: 'maxTime',
                valueType: 'dateTime',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '人员姓名',
                dataIndex: 'personName',
                valueType: 'input',
                hideInTable: true,
                align: 'center',
            },
        ],
    }
    return data
}

// 出勤统计
export const SecondaryTemperatureTemplate = async ({ uuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, organizationUuid: uuid },
        get: API_LIST()[`getGetAttendancesList`],
        columns: [
            {
                title: '组织机构',
                dataIndex: 'organizationUuid',
                ellipsis: true,
                valueType: 'select',
                align: 'center',
                initialValue: uuid,
                valueEnum: await FrontOrganizations(),
            },
            {
                title: '时间',
                valueType: 'dateTime',
                dataIndex: 'attendanceTime',
                ellipsis: true,
                align: 'center',
                search: false,
            },
            {
                title: '人员类别',
                dataIndex: 'personTypeName',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                dataIndex: 'personTypeUuid',
                title: '人员类别',
                valueType: 'treeSelect',
                fieldProps: {
                    options: await PersonTypeTree(),
                    fieldNames: { label: 'tableName', value: 'uuid' },
                },
                rules: true,
                hideInTable: true,
                width: 150,
            },
            {
                title: '体温',
                dataIndex: 'temperature',
                ellipsis: true,
                align: 'center',
                search: false,
            },
            {
                title: '姓名',
                align: 'center',
                dataIndex: 'personName',
                ellipsis: true,
            },
            {
                title: '打卡地址',
                align: 'center',
                dataIndex: 'address',
                ellipsis: true,
            },
            {
                title: '开始时间',
                valueType: 'dateTime',
                dataIndex: 'BeginAttendanceTime',
                ellipsis: true,
                align: 'center',
                hideInTable: true,
            },
            {
                title: '结束时间',
                valueType: 'dateTime',
                dataIndex: 'EndAttendanceTime',
                ellipsis: true,
                align: 'center',
                hideInTable: true,
            },
            {
                title: '体温情况',
                dataIndex: 'overTemperature',
                ellipsis: true,
                valueType: 'select',
                align: 'center',
                valueEnum: BuiltInData.overTemperature,
            },
        ],
    }
    return data
}

// 形象进度 - 总体
export const ImageProgressPopulation = async ({ uuid }) => {
    const ClientData = JSON.parse(localStorage.getItem('ClientData'))
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()[`getGetEngineeringDetail`],
        columns: [
            { ...commonTableList.organizationUuid, valueEnum: await FrontOrganizations(), align: 'center', width: 100 },
            {
                dataIndex: 'engineeringListUuid',
                title: '形象进度',
                valueType: 'select',
                valueEnum: ClientData.engineeringList,
                initialValue: uuid || null,
                rules: true,
                width: 250,
            },
            {
                title: '总工程量',
                dataIndex: 'zAmount',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '完成工程量',
                dataIndex: 'amount',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '完成比例',
                dataIndex: 'percentage',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// 文件柜
export const securitySlopeLeft = async ({ uuid, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            infoTypeManageUuid: uuid,
            OOrganizationName: 'asc@1',
            OEventDate: 'desc@2',
            ApprovalStatus: 2,
        },
        get: API_LIST()[`getConstructionInfoManageStat`],
        columns: [
            commonTableList.uuid,
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            { ...commonTableList.tableName, title: '主题', align: 'center' },
            {
                dataIndex: 'infoTypeManageUuid',
                title: '文件类型',
                valueType: 'treeSelect',
                initialValue: uuid,
                fieldProps: {
                    options: await InfoTypeManageTree(uuid),
                    fieldNames: { label: 'tableName', value: 'uuid' },
                },
                rules: true,
                align: 'center',
                hideInSearch: true,
                width: 200,
            },
            // { ...commonTableList.organizationUuid, valueEnum: await FrontOrganizations(), align: 'center' },
            {
                dataIndex: 'approvalStatus',
                title: '审核状态',
                valueType: 'select',
                valueEnum: BuiltInData.ReviewStatus,
                hideInAdded: true,
                hideInModify: true,
                align: 'center',
                width: 100,
            },
            {
                dataIndex: 'eventDate',
                title: '事件日期',
                valueType: 'Date',
                showTime: true,
                align: 'center',
                width: 200,
                hideInSearch: true,
            },
            { ...commonTableList.remark, align: 'center' },
            { ...commonTableList.createUserName, align: 'center' },
            { ...commonTableList.createTime, align: 'center' },
            { ...commonTableList.updateUserName, align: 'center' },
            { ...commonTableList.updateTime, align: 'center' },
            commonTableList.StartTime,
            commonTableList.EndTime,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="anne"
                            type="link"
                            onClick={async () => {
                                const state = await GetAttData(record.uuid)
                                if (state) {
                                    OptionsEvent.emit(state)
                                } else {
                                    OptionsEvent.emit({ type: 'tips', state: 'info', tips: '暂无附件' })
                                }
                            }}
                        >
                            查看附件
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// 质量预警列表
export const QualityStatDetail = async () => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()[`getJSZXQualityByProject`],
        hideInSearch: true,
        columns: [
            {
                title: '项目名称',
                dataIndex: 'projectName',
                ellipsis: true,
                width: 150,
                align: 'center',
            },
            {
                title: '自检评分',
                dataIndex: 'labSelfScore',
                ellipsis: true,
                width: 150,
                align: 'center',
            },
            {
                title: '抽检评分',
                dataIndex: 'labSamplingScore',
                width: 150,
                align: 'center',
            },
            {
                title: '第三方评分',
                dataIndex: 'labDsfScore',
                align: 'center',
                width: 150,
            },
        ],
    }
    return data
}

// 文件审批数据
export const DocumentApproval = async ({ OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()[`getHomeFormDetail`],
        columns: [
            commonTableList.uuid,
            { ...commonTableList.SearchSort, selectType: 'FlowForm' },
            {
                dataIndex: 'eventDate',
                title: '日期',
                valueType: 'Date',
                showTime: true,
                ellipsis: true,
                hideInSearch: true,
                rules: true,
                width: 200,
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInAdded: true,
                hideInModify: true,
            },
            { ...commonTableList.tableName, title: '标题' },
            {
                dataIndex: 'approvalStatus',
                title: '状态',
                valueType: 'select',
                valueEnum: BuiltInData.FormApprovalStatus,
                hideInAdded: true,
                hideInModify: true,
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'infoContent',
                title: '内容',
                valueType: 'textarea',
                hideInSearch: true,
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'flowUuid',
                title: '流程Uuid',
                valueType: 'hidden',
                hideInSearch: true,
                hideInTable: true,
            },
            {
                dataIndex: 'organizationUuid',
                title: '组织机构',
                valueType: 'hidden',
                hideInSearch: true,
                hideInTable: true,
            },
            {
                dataIndex: 'approvalStatus',
                title: '状态',
                valueType: 'hidden',
                hideInSearch: true,
                hideInTable: true,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="anne"
                            type="link"
                            onClick={async () => {
                                const state = await GetAttData(record.uuid, 1)
                                if (state) OptionsEvent.emit(state)
                                else OptionsEvent.emit({ type: 'tips', state: 'info', tips: '暂无附件' })
                            }}
                        >
                            查看附件
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

/**
 * !!! 试验室数据
 */

// TODO 某组织机构的压力机数据
export const LabStressMachineMapping = async ({ uuid, OptionsEvent, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            equipmentType: '压力机',
            isEnabled: 1,
            OTestDate: 'desc@1',
            testEvaluation: result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabStressMachine`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'projectName',
                title: '工程名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'constructionSpot',
                title: '施工部位',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testType',
                title: '试验类别',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testDate',
                title: '试验日期',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'cubeCode',
                title: '试件编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'concreteAge',
                title: '龄期',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                ellipsis: true,
                align: 'center',
            },
            {
                dataIndex: 'designStrength',
                title: '设计强度',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'representativeStrength',
                title: '强度代表值',
                valueType: 'input',
                render: (_, { representativeStrength }) => {
                    return <div> {parseInt(representativeStrength * 100) / 100} </div>
                },
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testEvaluation',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                hideInSearch: true,
                width: 180,
                ellipsis: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '试验机名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record
                    return [
                        // 试验详情
                        <Button
                            key="openThr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'LabStressMachine',
                                    data: {
                                        data: { uuid },
                                        title: '压力机试验详情',
                                        width: 1200,
                                    },
                                })
                            }
                        >
                            试验详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// TODO 某组织机构的抗压抗折一体机数据
export const LabStressMachineMappingTwo = async ({ uuid, result, startDate, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            equipmentType: '抗折抗压一体机',
            isEnabled: 1,
            OTestDate: 'desc@1',
            testEvaluation: result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabStressMachine`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'projectName',
                title: '工程名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'constructionSpot',
                title: '施工部位',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testType',
                title: '试验类别',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testDate',
                title: '试验日期',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'cubeCode',
                title: '试件编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'concreteAge',
                title: '龄期',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                ellipsis: true,
                align: 'center',
            },
            {
                dataIndex: 'designStrength',
                title: '设计强度',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'representativeStrength',
                title: '强度代表值',
                valueType: 'input',
                render: (_, { representativeStrength }) => {
                    return <div> {parseInt(representativeStrength * 100) / 100} </div>
                },
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testEvaluation',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                hideInSearch: true,
                width: 180,
                ellipsis: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '试验机名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record
                    return [
                        // 试验详情
                        <Button
                            key="openThr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'LabStressMachine',
                                    data: {
                                        data: { uuid },
                                        title: '抗折抗压一体机试验详情',
                                        width: 1200,
                                    },
                                })
                            }
                        >
                            试验详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// TODO 某组织机构的万能机钢筋数据
export const LabUniversalRebarMapping = async ({ uuid, result, startDate, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            OTestDate: 'desc@1',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabUniversalRebar`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'groupName',
                title: '试验组号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testCode',
                title: '试件序号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testType',
                title: '试验类别',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testDate',
                title: '试验时间',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'nominalDiameter',
                title: '公称直径',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'nominalSectionalArea',
                title: '公称截面面积',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'lowerYield',
                title: '屈服力Fs(kN)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'lowerYieldStrength',
                title: '屈服点RP(MPa)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'maximumForce',
                title: '拉断最大力Fm(kN)',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'bendingStrength',
                title: '抗拉强度Rm(MPa)',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'elongationPctAfter',
                title: '断后伸长率A(%)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'maximumTotalElongation',
                title: '最大力总延伸率(%)',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'elasticityModulus',
                title: '弹性模量E(Gpa)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'result',
                title: '评定结果',
                rules: true,
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '试验机名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { groupId } = record

                    return [
                        // 试验详情
                        <Button
                            key="openThr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'LabUniversalRebar',
                                    data: {
                                        data: { groupId },
                                        title: '万能机试验详情',
                                        width: 1200,
                                    },
                                })
                            }
                        >
                            试验详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// TODO 某组织机构的标养室数据
export const LabHumitureMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            ODataCreationTime: 'desc@1',
            testEvaluation: result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabHumiture`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sensorName',
                title: '传感器名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'dataCreationTime',
                title: '创建时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'temperature',
                title: '温度',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'humidity',
                title: '湿度',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'electricQuantity',
                title: '电量',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testEvaluation',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// TODO 某组织机构的回弹仪数据
export const LabReboundHammerMapping = async ({ uuid, result, startDate, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            ODetectionTime: 'desc@0',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabReboundHammer`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'componentNumber',
                title: '构件编号',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'componentName',
                title: '构件名称',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'detectionTime',
                title: '检测时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'designGrade',
                title: '砼设计强度',
                valueType: 'input',
                width: 120,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'componentStrength',
                title: '构件强度',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'carbonationDepthdata',
                title: '碳化深度',
                valueType: 'input',
                width: 120,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            // ! 合并
            {
                dataIndex: 'testSurface',
                title: '测试状态',
                valueType: 'input',
                width: 150,
                render: (_, e) => {
                    const { testSurface, sideIsdry, sideRough } = e
                    const testSurfaceList = { 0: '表面', 1: '侧面', 2: '底面' }
                    const sideIsdryList = { 0: '干燥', 1: '湿润' }
                    const sideRoughList = { 0: '光滑', 1: '粗糙' }
                    return (
                        <div>
                            {testSurfaceList[testSurface]},{sideIsdryList[sideIsdry]},{sideRoughList[sideRough]}
                        </div>
                    )
                },
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testAngle',
                title: '测试角度',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record
                    return [
                        <Button
                            key="openThr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'LabReboundHammer',
                                    data: {
                                        data: { uuid },
                                        title: '回弹仪试验详情',
                                        width: 1200,
                                    },
                                })
                            }
                        >
                            试验详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// TODO 某组织机构的钢筋保护层数据
export const LabCoverProtectorMapping = async ({ uuid, result, startDate, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            ODetectionTime: 'desc@1',
            gradingresults: result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabCoverProtector`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'componentName',
                title: '构件名称',
                valueType: 'input',
                width: 200,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'structureName',
                title: '结构物名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'structuralPosition',
                title: '结构位置',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'detectionTime',
                title: '检测时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'designThickness',
                title: '设计厚度(mm)',
                valueType: 'input',
                width: 120,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'numberOfbars',
                title: '测点总数',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'averageThickness',
                title: '平均厚度',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'minThickness',
                title: '最小厚度',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'maxThickness',
                title: '最大厚度',
                valueType: 'input',
                width: 100,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'percentOfPass',
                title: '合格率(%)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'gradingresults',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.gradingresults,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record
                    return [
                        <Button
                            key="openThr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'LabCoverProtector',
                                    data: {
                                        data: { uuid },
                                        title: '钢筋保护层详情',
                                        width: 1200,
                                    },
                                })
                            }
                        >
                            试验详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// TODO 某组织机构的马歇尔数据
export const LabMarshallStabilityMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            OTestDate: 'desc@1',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabMarshallStability`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'taskNo',
                title: '任务编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testFr',
                title: '试件序号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleName',
                title: '样品名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'endTime',
                title: '结束时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'stability',
                title: '稳定度(kN)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'average',
                title: '稳定度平均值',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'flow',
                title: '流值(mm)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'flowavg',
                title: '流值平均值',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'marshalLt',
                title: '马歇尔模数(kN/mm)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'avgmarshallt',
                title: '马歇尔模数平均值',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'result',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// TODO 某组织机构的延度仪数据
export const LabDuctilityMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            OTestDate: 'desc@1',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabDuctility`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'taskNo',
                title: '任务编号',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testFr',
                title: '试件序号',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleName',
                title: '样品名称',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'endTime',
                title: '结束时间',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testTemp',
                title: '试验温度',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'extensionSpeed',
                title: '延伸速度',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ductility',
                title: '延伸值',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'averageDuctility',
                title: '平均延度',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'result',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 250,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// TODO 某组织机构的软化点数据
export const LabSofteningPointMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            OTestDate: 'desc@1',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabSofteningPoint`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'taskNo',
                title: '任务编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testFr',
                title: '试件序号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleName',
                title: '样品名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'endTime',
                title: '结束时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testTemp',
                title: '试验温度(℃)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'softenTime',
                title: '软化点时间(mm:ss)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'softenP',
                title: '软化点温度(℃)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'average',
                title: '平均值',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'result',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// TODO 某组织机构的针入度数据
export const LabPenetrationMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            OTestDate: 'desc@1',
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabPenetration`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'ownerOrganizationName',
                title: '样品来源',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'taskNo',
                title: '任务编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testFr',
                title: '试件序号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleName',
                title: '样品名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'endTime',
                title: '结束时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testTemp',
                title: '试验温度(℃)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'penetration',
                title: '针入度',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'average',
                title: '平均值',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'result',
                title: '评定结果',
                valueType: 'select',
                valueEnum: BuiltInData.result,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.BeginStatDate,
            commonTableList.EndStatDate,
        ],
    }
    return data
}

// TODO 某组织机构的路强仪cbr试验数据
export const LabPmsTesterCbrMapping = async ({ uuid, result, startDate }) => {
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            OrganizationUuid: uuid,
            isEnabled: 1,
            result,
            NeedHandle: result,
            BeginStatDate: startDate,
        },
        get: API_LIST()[`getLabPmsTesterCbr`],
        columns: [
            commonTableList.uuid,
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'taskNo',
                title: '试验编号(组号)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleName',
                title: '样品名称',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'testFr',
                title: '试件序号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'sampleNo',
                title: '试样编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'cbr25',
                title: 'CBR25(%)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'cbr50',
                title: 'CBR50(%)',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },

            {
                dataIndex: 'result',
                title: '评定结果',
                valueType: 'input',
                render: (_, e) => <div>{e.result === 0 ? '合格' : e.result === 1 ? '不合格' : '未评定'}</div>,
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'labHandleTypeUuid',
                title: '处理意见',
                valueType: 'select',
                valueEnum: await LabHandleType(),
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'remark',
                title: '意见说明',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleUserName',
                title: '审核人',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'handleTime',
                title: '审核时间',
                valueType: 'input',
                width: 180,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentNumber',
                title: '设备编号',
                valueType: 'input',
                width: 150,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'equipmentName',
                title: '设备名称',
                valueType: 'input',
                width: 400,
                ellipsis: true,
                hideInSearch: true,
                align: 'center',
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }
    return data
}

// ! 拌和站数据

// 项目沥青预警明细
export const AsphaltMixingStationDetail = async ({ uuid, other }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, matName: uuid },
        get: API_LIST()[`getAsphaltMixingStationExceededData`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'alarmlve',
                title: '报警等级',
                valueType: 'select',
                valueEnum: BuiltInData.alarmlve,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'uporDown',
                title: '报警类型',
                valueType: 'select',
                valueEnum: BuiltInData.uporDown,
                align: 'center',
                width: 150,
            },
            {
                title: '出料时间',
                dataIndex: 'dischargingTime',
                valueType: 'dateTime',
                hideInSearch: true,
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                dataIndex: 'equipmentCode',
                title: '设备编号',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'engineeringName',
                title: '工程名称',
                valueType: 'input',
                align: 'center',
                width: 150,
            },
            {
                title: '施工地点',
                dataIndex: 'constructionSite',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                dataIndex: 'layerPosition',
                title: '使用层位',
                valueType: 'select',
                align: 'center',
                valueEnum: BuiltInData.layerPosition,
                width: 150,
            },
            {
                dataIndex: 'proportionIdGet',
                title: '配合比编号',
                valueType: 'input',
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'temperature',
                title: '出料温度',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'asphaltAggregateRatioAct',
                title: '油石比(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'asphaltAct',
                title: '施工沥青用量(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'sand1Act',
                title: '骨料1(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'sand2Act',
                title: '骨料2(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'gravel1Act',
                title: '骨料3(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'gravel2Act',
                title: '骨料4(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'gravel3Act',
                title: '骨料5(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'gravel4Act',
                title: '骨料6(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'slagPowderAct',
                title: '矿粉(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'cement1Act',
                title: '水泥(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'recycledMaterialAct',
                title: '再生料(实际)',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }
    return data
}

// 项目水泥预警明细
export const CementMixingStationExceededDatil = async ({ uuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, matName: uuid },
        get: API_LIST()[`getCementMixingStationExceededData`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'alarmlve',
                title: '报警等级',
                valueType: 'select',
                valueEnum: BuiltInData.alarmlve,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'uporDown',
                title: '报警类型',
                valueType: 'select',
                valueEnum: BuiltInData.uporDown,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'dischargingTime',
                title: '出料时间',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'equipmentCode',
                title: '设备编号',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'projectName',
                title: '工程名称',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'pouringPosition',
                title: '浇筑部位',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'strengthGrade',
                title: '强度等级',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'quantityAct',
                title: '实际方量(m³)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'waterAct',
                title: '水(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'cementAct',
                title: '水泥(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'sandAct',
                title: '砂(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravelAct',
                title: '碎石(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'flyashAct',
                title: '粉煤灰(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'slagPowderAct',
                title: '矿粉(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'waterReducerAct',
                title: '减水剂(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }
    return data
}

//  项目沥青产量明细
export const GettAsphaltMixingStationDetail = async ({ uuid }) => {
    const params = hostname.includes('jszx') ? { projectUuid: uuid } : { OrganizationUuid: uuid }
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            ...params,
            ODischargingTime: 'desc@1',
        },
        get: API_LIST()[`getAsphaltMixingStationData`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'dischargingTime',
                title: '出料时间',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'equipmentCode',
                title: '设备编号',
                valueType: 'input',
                hideInSearch: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'engineeringName',
                title: '工程名称',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                title: '施工地点',
                dataIndex: 'constructionSite',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                dataIndex: 'layerPosition',
                title: '使用层位',
                valueType: 'select',
                valueEnum: BuiltInData.layerPosition,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'proportionIdGet',
                title: '配合比编号',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'temperature',
                title: '出料温度',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'asphaltAggregateRatioAct',
                title: '油石比(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'asphaltAct',
                title: '施工用量(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'sand1Act',
                title: '骨料1(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'sand2Act',
                title: '骨料2(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravel1Act',
                title: '骨料3(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravel2Act',
                title: '骨料4(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravel3Act',
                title: '骨料5(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravel4Act',
                title: '骨料6(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'slagPowderAct',
                title: '矿粉(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'cement1Act',
                title: '水泥(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'recycledMaterialAct',
                title: '再生料(实际)',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }

    return data
}
//   项目水泥产量明细
export const CementMixingStationGroupDetail = async ({ uuid }) => {
    const params = hostname.includes('jszx') ? { projectUuid: uuid } : { OrganizationUuid: uuid }
    let data = {
        pageSize: 10,
        params: {
            pageIndex: 1,
            ...params,
            ODischargingTime: 'desc@1',
        },
        get: API_LIST()[`getCementMixingStationData`],
        columns: [
            {
                ...commonTableList.projectUuid,
                valueEnum: await ProjectList(),
                hideInAdded: true,
                hideInModify: true,
                hideInTable: true,
                hideInSearch: !hostname.includes('jszx'),
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                hideInSearch: true,
                align: 'center',
            },
            {
                dataIndex: 'dischargingTime',
                title: '出料时间',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'equipmentCode',
                title: '设备编号',
                valueType: 'input',
                hideInSearch: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'projectName',
                title: '工程名称',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'pouringPosition',
                title: '浇筑部位',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'strengthGrade',
                title: '强度等级',
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'quantityAct',
                title: '实际方量(m³)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'waterAct',
                title: '水(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'cementAct',
                title: '水泥(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'sandAct',
                title: '砂(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'gravelAct',
                title: '碎石(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'flyashAct',
                title: '粉煤灰(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'slagPowderAct',
                title: '矿粉(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'waterReducerAct',
                title: '减水剂(kg)',
                hideInSearch: true,
                valueType: 'input',
                width: 150,
                align: 'center',
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }

    return data
}

// 拌合站出料明细
export const SecondaryCementMixPlat = async ({ uuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, OrganizationUuid: uuid },
        get: API_LIST()[`getCementMixingStations`],
        columns: [
            commonTableList.uuid,
            {
                title: '工程名称',
                dataIndex: 'projectName',
                ellipsis: true,
                valueType: 'select',
                valueEnum: {},
                search: false,
                align: 'center',
            },
            {
                title: '施工地点',
                dataIndex: 'constructionSite',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '浇筑部位',
                dataIndex: 'pouringPosition',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '任务单号',
                dataIndex: 'taskId',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '出料时间',
                dataIndex: 'dischargingTime',
                valueType: 'dateTime',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '施工配合比编号',
                dataIndex: 'proportionOperId',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '强度等级',
                dataIndex: 'strengthGrade',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '操作人',
                dataIndex: 'operator',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '实际方量',
                dataIndex: 'quantityAct',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '搅拌时长',
                dataIndex: 'mixingDuration',
                ellipsis: true,
                search: false,
                align: 'center',
            },
            {
                title: '是否超标',
                dataIndex: 'excessState',
                valueType: 'select',
                valueEnum: BuiltInData.excessState,
                ellipsis: true,
                search: false,
                align: 'center',
            },
            commonTableList.StartTime,
            commonTableList.EndTime,
        ],
    }
    return data
}

// 梁片年生产能力 (统计)
export const SecondaryGetBeamProduceSum = async ({ uuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, OrganizationUuid: uuid },
        get: API_LIST()[`getGetBeamProduceSum`],
        columns: [
            {
                title: '组织机构',
                dataIndex: 'organizationName',
                ellipsis: true,
                align: 'center',
                search: false,
            },
            {
                title: '桥名称',
                dataIndex: 'bridgeName',
                align: 'center',
                ellipsis: true,
            },
            {
                title: '部位',
                dataIndex: 'part',
                align: 'center',
                valueType: 'select',
                valueEnum: {
                    无: { text: '无' },
                    左幅: { text: '左幅' },
                    右幅: { text: '右幅' },
                },
                ellipsis: true,
            },
            {
                title: '总数',
                dataIndex: 'beamCount',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '完成数量',
                dataIndex: 'beamProduceRecordEnd',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '正在生产',
                dataIndex: 'beamProduceRecord',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '未生产',
                dataIndex: 'unBeamProduceRecord',
                align: 'center',
                ellipsis: true,
                search: false,
            },
        ],
    }
    return data
}

// 片年生产明细 (明细)
export const SecondaryGetBeamProduceRecords = async ({ uuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, OrganizationUuid: uuid },
        get: API_LIST()[`getGetBeamProduceRecords`],
        columns: [
            {
                title: '组织机构',
                dataIndex: 'organizationName',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '桥名称',
                dataIndex: 'bridgeName',
                align: 'center',
                ellipsis: true,
            },
            {
                title: '部位',
                dataIndex: 'part',
                valueType: 'select',
                align: 'center',
                valueEnum: {
                    0: { text: '无' },
                    1: { text: '左幅' },
                    2: { text: '右幅' },
                },
                ellipsis: true,
            },
            {
                title: '梁号',
                dataIndex: 'beamNo',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '梁型',
                dataIndex: 'beamTypeName',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '工序',
                dataIndex: 'processUuid',
                ellipsis: true,
                align: 'center',
                valueType: 'select',
                valueEnum: {},
            },
            {
                title: '台座',
                dataIndex: 'beamSeatName',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '最后工序日期',
                dataIndex: 'produceDate',
                valueType: 'dateTime',
                align: 'center',
                ellipsis: true,
                search: false,
            },
            {
                title: '审核状态',
                dataIndex: 'auditStatus',
                align: 'center',
                ellipsis: true,
                search: false,
                valueType: 'select',
                valueEnum: {
                    '-1': { text: '销毁' },
                    0: { text: '检测中' },
                    1: { text: '合格' },
                    2: { text: '不合格' },
                },
            },
            {
                title: '开始日期',
                dataIndex: 'BeginProduce',
                align: 'center',
                valueType: 'dateTime',
                ellipsis: true,
                hideInTable: true,
            },
            {
                title: '结束日期',
                dataIndex: 'EndProduce',
                align: 'center',
                valueType: 'dateTime',
                ellipsis: true,
                hideInTable: true,
            },
        ],
    }
    return data
}

export const CompanyCostByOrganizationUuid = async ({ uuid, OptionsEvent }) => {
    OptionsEvent.emit(123)
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()[`getProgressGetCompanyCostByOrganizationUuid`],
        columns: [
            commonTableList.uuid,
            {
                title: '组织机构',
                dataIndex: 'organizationUuid',
                ellipsis: true,
                valueType: 'select',
                align: 'center',
                initialValue: uuid,
                valueEnum: await FrontOrganizations(),
            },
            {
                title: '申报日期',
                dataIndex: 'createTime',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '申报年月',
                dataIndex: 'eventDate',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '收入(万元)',
                dataIndex: 'c110',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '税金及附加(万元)',
                dataIndex: 'c160',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '成本(万元)',
                dataIndex: 'c300',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '利润(万元)',
                dataIndex: 'c390',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '目标利润(万元)',
                dataIndex: 'c410',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '盈亏情况(万元)',
                dataIndex: 'c420',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                dataIndex: 'eventDate',
                title: '日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
                hideInSearch: true,
            },
            commonTableList.StartTime,
            commonTableList.BeginTime,
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'OpenExcel',
                                    data: {
                                        title: '项目明细',
                                        width: 1500,
                                        data: {
                                            save: true,
                                            CostMonthUuid: uuid,
                                            url: 'getCostMonthCostMonthDetailAcross',
                                        },
                                    },
                                })
                            }}
                        >
                            项目明细
                        </Button>,
                        <Button
                            key="two"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'OpenExcel',
                                    data: {
                                        title: '公司汇总',
                                        width: 1500,
                                        data: {
                                            save: true,
                                            CostMonthUuid: uuid,
                                            url: 'getCostMonthFilialeCostMonthDetail',
                                        },
                                    },
                                })
                            }
                        >
                            公司汇总
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const JTGJHomeTopOne = async ({ OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        hideInSearch: true,
        get: API_LIST()[`getJTGJCompanyList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'tableName',
                title: '公司名称',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                title: '收入(万元)',
                dataIndex: 'c110',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '税金及附加(万元)',
                dataIndex: 'c160',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '成本(万元)',
                dataIndex: 'c300',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '利润(万元)',
                dataIndex: 'c390',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '目标利润(万元)',
                dataIndex: 'c410',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '盈亏情况(万元)',
                dataIndex: 'c420',
                align: 'center',
                ellipsis: true,
                width: 180,
                search: false,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { uuid } = record

                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'APIAnnexModal',
                                    data: { title: '项目简介', uuid: uuid },
                                })
                            }}
                        >
                            公司简介
                        </Button>,
                        <Button
                            key="two"
                            className="TableBtn"
                            type="link"
                            onClick={() => (window.location.href = `/Front/Page/OneOne?uuid=${uuid}`)}
                        >
                            公司详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const JTGJHomeTopTwo = async ({ uuid, OptionsEvent, OrganizationUuid }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, EngineeringType: uuid, address: OrganizationUuid },
        hideInSearch: true,
        get: API_LIST()[`getJTGJProjectList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'organizationName',
                valueType: 'input',
                rules: true,
                width: 300,
                align: 'center',
                title: '项目名称',
            },

            {
                dataIndex: 'engineeringStatus',
                title: '工程状态',
                valueType: 'select',
                align: 'center',
                ellipsis: true,
                width: 100,
                valueEnum: await EnumComments('engineeringStatus'),
                hideInSearch: true,
            },
            {
                dataIndex: 'winningBidder',
                title: '中标单位',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'projectManager',
                title: '项目经理',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'acceptanceAmount',
                title: '中标金额',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'constructionSite',
                title: '施工地点',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'numberLength',
                title: '施工桩号及长度',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'workStartDate',
                title: '开工日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'workEndDate',
                title: '竣工日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                width: 200,
                hideInSearch: true,
            },
            { ...commonTableList.remark, rules: true, align: 'center' },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { organizationUuid } = record
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'APIAnnexModal',
                                    data: { title: '项目简介', uuid: organizationUuid },
                                })
                            }}
                        >
                            项目简介
                        </Button>,
                        <Button
                            key="two"
                            className="TableBtn"
                            type="link"
                            onClick={() => (window.location.href = `/Front/Page/OneOne?uuid=${organizationUuid}`)}
                        >
                            项目详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const JTGJHomeLeft = async ({ uuid, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, organizationUuid: uuid },
        hideInSearch: true,
        get: API_LIST()[`getJTGJPersonList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'tableName',
                title: '名称',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'regularEmployee',
                title: '在册员工',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'laborDispatching',
                title: '劳务派遣',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'temporaryPersonnel',
                title: '临时工',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'serviceWorker',
                title: '劳务作业人员',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'totalCount',
                title: '总数',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'TableList',
                                    data: {
                                        title: '人员列表',
                                        type: 'JTGJHomePersonList',
                                        uuid: record.uuid,
                                    },
                                })
                            }}
                        >
                            人员列表
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const JTGJHomePersonList = async ({ uuid, OptionsEvent, ClientData }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, organizationUuid: uuid },
        hideInSearch: true,
        get: API_LIST()[`getPerson`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'personTypeName',
                title: '人员类别',
                valueType: 'input',
                hideInAdded: true,
                hideInModify: true,
                hideInSearch: true,
                width: 200,
                align: 'center',
            },
            { ...commonTableList.tableName, title: '姓名', align: 'center' },
            {
                dataIndex: 'mobile',
                title: '手机号码',
                valueType: 'input',
                rules: true,
                align: 'center',
                width: 150,
            },
            {
                dataIndex: 'idCard',
                title: '身份证',
                align: 'center',
                valueType: 'input',
                rules: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'personNumber',
                title: '人员编号',
                valueType: 'input',
                align: 'center',
                rules: true,
                width: 200,
                hideInSearch: true,
            },
            {
                dataIndex: 'isPartyMember',
                title: '党员',
                valueType: 'select',
                valueEnum: BuiltInData.isYes,
                align: 'center',
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'gender',
                title: '性别',
                valueType: 'select',
                align: 'center',
                valueEnum: BuiltInData.gender,
                rules: true,
                width: 150,
                hideInSearch: true,
            },
            {
                dataIndex: 'age',
                title: '年龄',
                valueType: 'inputNumber',
                align: 'center',
                width: 150,
                hideInSearch: true,
            },
            {
                dataIndex: 'certs',
                title: '证书',
                valueType: 'input',
                align: 'center',
                width: 150,
                hideInSearch: true,
                // rules: true,
            },

            {
                dataIndex: 'emergenceName',
                title: '紧急联系人姓名',
                valueType: 'input',
                width: 150,
                align: 'center',
                hideInSearch: true,
                // rules: true,
            },

            {
                dataIndex: 'emergenceMobile',
                title: '紧急联系人电话',
                align: 'center',
                valueType: 'input',
                width: 150,
                hideInSearch: true,
            },
            {
                dataIndex: 'entryTime',
                title: '进场时间',
                align: 'center',
                valueType: 'Date',
                width: 150,
                rules: true,
                hideInSearch: true,
            },
            {
                dataIndex: 'leaveTime',
                title: '退场时间',
                align: 'center',
                valueType: 'Date',
                width: 150,
                // rules: true,
                hideInSearch: true,
            },
            {
                dataIndex: 'departmentUuid',
                title: '部门',
                valueType: 'select',
                align: 'center',
                valueEnum: ClientData.dictionary['a2891f3b-3811-4b8b-8dbb-832096e3174e'],
                rules: true,
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'positionUuid',
                title: '岗位',
                valueType: 'select',
                align: 'center',
                valueEnum: ClientData.dictionary['d4d706cd-1538-456b-90da-d061195c8aa6'],
                rules: true,
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'rankUuid',
                title: '职务级别',
                valueType: 'select',
                align: 'center',
                valueEnum: ClientData.dictionary['d83de24e-191d-4646-b742-55ad694a3747'],
                rules: true,
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'categoryUuid',
                title: '人员性质',
                align: 'center',
                valueType: 'select',
                valueEnum: ClientData.dictionary['51297964-6295-475a-8219-d3f9a4568fe6'],
                rules: true,
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },

            {
                dataIndex: 'laborCompany',
                title: '劳务公司',
                valueType: 'input',
                align: 'center',
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'dailyWage',
                title: '日工资',
                valueType: 'inputNumber',
                align: 'center',
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'creditCardNum',
                title: '银行卡号',
                valueType: 'input',
                align: 'center',
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },
            {
                dataIndex: 'bankName',
                title: '开户银行',
                valueType: 'input',
                align: 'center',
                width: 150,
                hideInAdded: !hostname.includes('jtgj'),
                hideInModify: !hostname.includes('jtgj'),
                hideInTable: !hostname.includes('jtgj'),
                hideInSearch: !hostname.includes('jtgj'),
            },

            {
                dataIndex: 'address',
                title: '详细地址',
                valueType: 'textarea',
                align: 'center',
                width: 150,
                hideInSearch: true,
            },

            commonTableList.createUserName,
            commonTableList.createTime,
            commonTableList.updateUserName,
            commonTableList.updateTime,

            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'FileManagement',
                                    data: {
                                        title: '人员档案',
                                        width: 1000,
                                        data: {
                                            classification: 'person',
                                            record,
                                            options: true,
                                        },
                                    },
                                })
                            }}
                        >
                            人员档案
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const riskOne = async ({ uuid, OrganizationUuid, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, SuperviseType: uuid, OrganizationUuid },
        hideInSearch: true,
        get: API_LIST()[`getJTGJSuperviseList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'organizationName',
                title: '组织机构',
                valueType: 'input',
                // valueEnum: await FrontOrganizations(),
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'tableName',
                title: '名称',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'superviseTypeUuid',
                title: '类别',
                valueType: 'select',
                valueEnum: await SuperviseTypes(),
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
                hideInSearch: true,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'RiskDetailsBox',
                                    data: {
                                        title: '风险详情',
                                        data: record,
                                    },
                                })
                            }}
                        >
                            风险详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

// 安全巡检
export const SecondaryInspectionTemplate = async ({ uuid, OrganizationUuid, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, OrganizationUuid },
        get: API_LIST()[`getGetSecurityDetailData`],
        columns: [
            {
                title: '巡检日期',
                dataIndex: 'securityDate',
                valueType: 'dateTime',
                ellipsis: true,
                align: 'center',
                search: false,
                width: 200,
            },
            {
                title: '下单人员',
                dataIndex: 'createUserName',
                ellipsis: true,
                align: 'center',
                width: 100,
                search: false,
            },
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                initialValue: OrganizationUuid || null,
                align: 'center',
                width: 100,
                title: '整改人员',
                // hideInSearch: SecondaryInspectionTemplateHttp.includes(hostname)
            },

            {
                title: '状态',
                dataIndex: 'auditStatus',
                valueType: 'select',
                ellipsis: true,
                align: 'center',
                // initialValue: uuid || null,
                valueEnum: {
                    1: '下单数',
                    2: '已整改',
                    3: '未整改',
                },
                width: 100,
                hideInSearch: true,
            },
            {
                title: '问题类别',
                dataIndex: 'securityProblemTypeUuid',
                ellipsis: true,
                align: 'center',
                width: 200,
                fieldProps: {
                    options: await SecurityProblemTypeTree(),
                    fieldNames: { label: 'tableName', value: 'uuid' },
                },
                valueType: 'treeSelect',
                hideInSearch: true,
            },
            {
                title: '主题',
                dataIndex: 'tableName',
                ellipsis: true,
                align: 'center',
                width: 150,
                search: false,
            },
            {
                title: '问题描述',
                dataIndex: 'problem',
                align: 'center',
                width: 150,
                ellipsis: true,
            },
            {
                title: '整改天数',
                dataIndex: 'limitDays',
                ellipsis: true,
                align: 'center',
                width: 150,
                search: false,
            },
            {
                title: '整改分数',
                dataIndex: 'score',
                ellipsis: true,
                align: 'center',
                width: 150,
                search: false,
            },
            {
                title: '创建日期',
                dataIndex: 'createTime',
                valueType: 'dateTime',
                ellipsis: true,
                align: 'center',
                width: 200,
                search: false,
            },
            {
                title: '审核人姓名',
                dataIndex: 'updateUserName',
                ellipsis: true,
                align: 'center',
                width: 100,
                search: false,
            },
            {
                title: '审核日期',
                dataIndex: 'updateTime',
                valueType: 'dateTime',
                ellipsis: true,
                align: 'center',
                width: 200,
                search: false,
            },
            {
                title: '开始日期',
                valueType: 'dateTime',
                dataIndex: 'BeginSecurityDate',
                ellipsis: true,
                align: 'center',
                width: 200,
                hideInTable: true,
            },
            {
                title: '结束日期',
                valueType: 'dateTime',
                dataIndex: 'EndSecurityDate',
                ellipsis: true,
                align: 'center',
                width: 200,
                hideInTable: true,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'InspectionDetails',
                                    data: {
                                        title: '巡检详情',
                                        data: record,
                                    },
                                })
                            }}
                        >
                            巡检详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const JTGJFlowTable = async ({ OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        hideInSearch: true,
        get: API_LIST()[`getFundPlanList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'eventDate',
                title: '日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                hideInSearch: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'organizationUuid',
                title: '组织机构',
                valueType: 'select',
                valueEnum: await FrontOrganizations(),
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'tableName',
                title: '名称',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 200,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    const { pdfUrl, tableName } = record
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'Annex',
                                    data: { url: pdfUrl, title: tableName, width: '90vw' },
                                })
                            }
                        >
                            详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const AiPictureTables = async ({ OptionsEvent, uuid, OrganizationUuid }) => {
    let data = {
        pageSize: 10,
        params: {
            OrderField: 'logTime@desc',
            pageIndex: 1,
            ...uuid,
        },
        hideInSearch: true,
        get: API_LIST()[`getAiPicture`],
        leftMenu: OrganizationUuid,
        columns: [
            commonTableList.uuid,
            {
                ...commonTableList.organizationUuid,
                valueEnum: await FrontOrganizations(),
                align: 'center',
            },
            {
                dataIndex: 'algorithmName',
                title: '预警类型',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'logTime',
                title: '发现日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'handleTime',
                title: '处理日期',
                valueType: 'Date',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'handleUserName',
                title: '处理人员',
                valueType: 'input',
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            {
                ...commonTableList.remark,
                title: '原因',
                align: 'center',
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 100,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="thr"
                            className="TableBtn"
                            type="link"
                            onClick={() =>
                                OptionsEvent.emit({
                                    type: 'AiDetailsModal',
                                    data: {
                                        title: '预警详情',
                                        data: record,
                                    },
                                })
                            }
                        >
                            详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}

export const AffairsSupervisionDetailTables = async () => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1 },
        hideInSearch: true,
        get: API_LIST()[`getAffairsSupervisionDetail`],
        columns: [
            commonTableList.uuid,
            // {
            //     ...commonTableList.organizationUuid,
            //     valueEnum: await FrontOrganizations(),
            //     align: 'center',
            // },
            {
                dataIndex: 'organizationName',
                title: '组织机构',
                rules: true,
                valueType: 'input',
                ellipsis: true,
                width: 300,
                align: 'center',
            },
            {
                ...commonTableList.tableName,
                title: '姓名',
                rules: true,
                align: 'center',
            },
            {
                dataIndex: 'eventType',
                title: '事件类别',
                rules: true,
                valueType: 'select',
                ellipsis: true,
                width: 100,
                valueEnum: await EventType(),
                align: 'center',
            },
            {
                dataIndex: 'planEndDate',
                title: '计划完成日期',
                valueType: 'Date',
                ellipsis: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'endDate',
                title: '最终完成日期',
                valueType: 'Date',
                ellipsis: true,
                width: 150,
                align: 'center',
            },
            {
                dataIndex: 'eventStatus',
                title: '事件状态',
                rules: true,
                valueType: 'select',
                ellipsis: true,
                width: 100,
                valueEnum: BuiltInData.eventStatus,
                align: 'center',
            },
            {
                ...commonTableList.remark,
                title: '内容',
                align: 'center',
            },
        ],
    }
    return data
}

export const JTGJSecurityActivityTables = async ({ OrganizationUuid, OptionsEvent }) => {
    let data = {
        pageSize: 10,
        params: { pageIndex: 1, OrganizationUuid },
        hideInSearch: true,
        get: API_LIST()[`getSecurityActivityList`],
        columns: [
            commonTableList.uuid,
            {
                dataIndex: 'organizationName',
                title: '组织机构',
                valueType: 'input',
                // valueEnum: await FrontOrganizations(),
                align: 'center',
                ellipsis: true,
                rules: true,
                width: 200,
            },
            // {
            //     ...commonTableList.organizationUuid,
            //     valueEnum: await FrontOrganizations(),
            //     align: 'center',
            // },
            {
                ...commonTableList.tableName,
                title: '主题',
                align: 'center',
            },
            {
                dataIndex: 'interval',
                title: '活动时长',
                valueType: 'input',
                ellipsis: true,
                width: 200,
                hideInAdded: true,
                hideInModify: true,
                align: 'center',
            },
            {
                dataIndex: 'startTime',
                title: '开始时间',
                valueType: 'Date',
                showTime: true,
                ellipsis: true,
                rules: true,
                width: 200,
                align: 'center',
            },
            {
                dataIndex: 'endTime',
                title: '结束时间',
                valueType: 'Date',
                showTime: true,
                ellipsis: true,
                rules: true,
                width: 200,
                align: 'center',
            },
            {
                title: '操作',
                valueType: 'systemOperation',
                fixed: 'right',
                align: 'center',
                width: 240,
                hideInSearch: true,
                hideInAdded: true,
                hideInModify: true,
                render: (_, record) => {
                    return [
                        <Button
                            key="one"
                            className="TableBtn"
                            type="link"
                            onClick={() => {
                                OptionsEvent.emit({
                                    type: 'SecurityActivityDetailBox',
                                    data: {
                                        title: '活动详情',
                                        data: record,
                                    },
                                })
                            }}
                        >
                            活动详情
                        </Button>,
                    ]
                },
            },
        ],
    }
    return data
}
